using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace ProjectSurvivor
{
    [CreateAssetMenu]
    public class LevelConfig : ScriptableObject
    {
        [SerializeField]
        public List<EnemyWaveGroup> EnemyWaveGroups = new List<EnemyWaveGroup>();

    }

    [Serializable]
    public class EnemyWaveGroup
    {
        public string Name;
        [TextArea]
        public string Description = string.Empty;
        
        [SerializeField]
        public List<EnemyWave> Waves = new List<EnemyWave>();
    }
    
    // 敌人波次
    [Serializable]
    public class EnemyWave
    {
        public string Name;
        public bool Active = true;
        public float GenerateDuration = 1f; // 生成敌人的间隔
        public GameObject EnemyPrefab; // 敌人预制
        public int Seconds = 10; // 持续时间
        public float HPScale = 1f;
        public float SpeedScale = 1f;
    }
}

